const child_process = require("child_process");

function run(cb) {
    let objShell = child_process.exec("leb -s");
    objShell.stdout.on("data", data => {
        console.log(data)
    })

    objShell.stderr.on("data", data => {
        console.log(data);
    })

    objShell.on('exit', cb);
}

function publish() {
    let relDirName = "wxgame_r";

    return require("./publish")(relDirName);
}

exports.run = run;
// exports.psh = publish;
// exports.compile = require("./compile");
